{% load comments %}

<ul>
    <li id="comment{{ comment.pk }}">
        <div class="comment">
            <div class="user-avatar">
                <img src="{{ comment.user.get_profile.get_avatar }}" width="50" height="50" />
            </div>
            <div class="user-info plus-block">
                {% if comment.user.get_profile.vk_user_id %}
                    <a href="//vk.com/id{{ comment.user.get_profile.vk_user_id }}" target="_blank" title="Страница пользователя ВКонтакте">
                {% endif %}
                    {{ comment.user.get_profile.get_user_name }}
                {% if comment.user.get_profile.vk_user_id %}
                    </a>
                {% endif %}
                <span class="user-comments-count">Комментариев: <strong class="ratingValue">{% user_comments_count comment.user %}</strong></span>
                <span class="user-comments-count">Рейтинг: <strong class="ratingValue">{{ comment.user.get_profile.rating|floatformat:0 }}</strong></span>
            </div>
            <div class="message">{{ comment.message|safe }}</div>
            <div class="controls">
                {{ comment.date }}

                <div class="ranks">
                    {% for rank in comment.user.get_profile.ranks.all %}
                        <img src="/static/images/medals/{{ rank.rank_icon }}" title="{{ rank.description }}" />
                    {% endfor %}
                </div>

                <a href="#{{ comment.pk }}" class="post-response">Ответить</a>

                <div class="comment-rating">
                    <a href="#{{ comment.pk }}" class="dec"><img class="" src="/static/images/icon-down.gif"/></a>
                    <span class="ratingValue" id="comment{{ comment.pk }}Rating">{{ comment.rating }}</span>
                    <a href="#{{ comment.pk }}" class="inc"><img class="" src="/static/images/icon-up.gif"/></a>
                </div>

            </div>
            <div class="form-container"></div>
        </div>
        {% for child in comment.childs %}
            {% render_comment child %}
        {% endfor %}
    </li>
</ul>